This is in preparation for making it runtime-settable in the
inspector.
display->multiple_click_info = g_hash_table_new_full (NULL, NULL, NULL,
(GDestroyNotify) g_free);
+
+ display->rendering_mode = _gdk_rendering_mode;
}
static void
#include "gdkdisplay.h"
#include "gdkwindow.h"
#include "gdkcursor.h"
+#include "gdkinternals.h"
G_BEGIN_DECLS
guint has_gl_extension_texture_non_power_of_two : 1;
guint has_gl_extension_texture_rectangle : 1;
+
+ GdkRenderingMode rendering_mode;
};
struct _GdkDisplayClass
int width,
int height)
{
+ GdkDisplay *display;
cairo_surface_t *window_surface, *surface;
double sx, sy;
sx = sy = 1;
cairo_surface_get_device_scale (window_surface, &sx, &sy);
- switch (_gdk_rendering_mode)
+ display = gdk_window_get_display (window);
+ switch (display->rendering_mode)
{
case GDK_RENDERING_MODE_RECORDING:
{